#pragma once
class DYUI
{
	friend class CRichManView;
public:
	DYUI();
	~DYUI();
public:
	virtual void Load(CWnd * wnd);
	virtual void Release(CWnd * wnd);
	virtual void OnClick(CWnd * wnd, UINT uID);
	virtual void OnSize(CRect rect);
	virtual void OnUpDate(CWnd * wnd, int flags = 0);
protected:
	static inline int GetID() { return nId++; }
	static void SetWndPosition(CWnd * wnd, int x, int y, int width, int height);
private:
	static int nBegin;
	static int nEnd;
	static int nId;
};

